<g:each in="${alunoInstance?.matriculas}" status="i" var="contratoInstance">
    <g:if test="contratoInstance?.anulacao">
    <table class="table table-bordered table-condensed">
        <thead>
            <tr>
                <th>
                    <center>
                        <h4><g:message code="contrato.label" default="Matrícula" /></h4>
                    </center>
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                  <div>
                    <g:link controller="contrato" action="show" id="${contratoInstance?.id}">
                        <span>
                            <b><g:message code="contrato.id.label" default="ID:" /></b>
                        </span>
                        <span >${fieldValue(bean: contratoInstance, field: "id")}</span>
                    </g:link>
                    <span class="divider"><g:message code="span.divider" /></span>
                    <span>
                        <b><g:message code="turma.ano.label" default="Ano:" /></b>
                    </span>
                    <span >${fieldValue(bean: contratoInstance?.turma?.ano, field: "ano")}</span>
                    <span class="divider"><g:message code="span.divider" /></span>
                    <span>
                        <b><g:message code="turma.serie.label" default="Série:" /></b>
                    </span>
                    <span >${fieldValue(bean: contratoInstance?.turma?.serie, field: "nome")}</span>
                    <span >${fieldValue(bean: contratoInstance?.turma, field: "nome")}</span>
                    <span class="divider"><g:message code="span.divider" /></span>
                  </div>
                  <div>
                    <span>
                        <b><g:message code="contrato.dataDaMatricula.label" default="Data:" /></b>
                    </span>
                    <span >
                        <g:formatDate date="${contratoInstance?.dataDaMatricula}"/>
                    </span>
                    <span class="divider"><g:message code="span.divider" /></span>
                  </div>
                </td>
            </tr>
        </tbody>
    </table>
    </g:if>
</g:each>
